package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Article;

public interface ArticleDAO {

	public void initDao();

	public void save(Article transientInstance);

	public void delete(Article persistentInstance);

	public Article findById(java.lang.Integer id);

	public List findByExample(Article instance);

	public List findByProperty(String propertyName, Object value);

	public List findByTitle(Object title);

	public List findByContent(Object content);

	public List findByHit(Object hit);

	public List findByState(Object state);

	public List findAll();

	public Article merge(Article detachedInstance);

	public void attachDirty(Article instance);

	public void attachClean(Article instance);

	public ArticleDAO getFromApplicationContext(ApplicationContext ctx);
}